<template>
  <div v-if="store.getters['setting/routerView']" class="app-main-container">
    <transition mode="out-in" name="fade-transform">
      <router-view class="app-main-height" />
    </transition>
    <footer class="footer-copyright"> Hu-snail vue3-admin 版权所有 © 2019-2021 </footer>
  </div>
</template>

<script setup>
  import { useStore } from 'vuex';
  const store = useStore();
</script>

<style lang="scss" scoped>
  .app-main-container {
    position: relative;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    text-align: left;
    .app-main-height {
      min-height: calc(100vh - 140px);
    }
    .footer-copyright {
      min-height: 55px;
      line-height: 55px;
      color: rgba(0, 0, 0, 0.45);
      text-align: center;
      border-top: 1px dashed $base-border-color;
    }
  }
</style>
